<div class='new_feed'>
<% remote_form_for @feed,
     :update => "feeds_#{@user.id}",
     :url => create_consume_in_taobao_feed_users_url,
     :method => :post,    
     :loading => small_loading("feeds_#{@user.id}", :height => '20px'),      
     :html => {
       :id => "#{@user.id}_new_sm_form"
     } do |f|
 %> 
  <dl>
    <dt>购买类型：</dt>
    <dd><%= f.text_field :consume_type %></dd>
  </dl>        
  <dl>
    <dt>消费金额：</dt>
    <dd><%= f.text_field :rmb %></dd>
  </dl>        
  <dl>    
    <dt>赠送麦粒：</dt>
    <dd><%= f.text_field :added_money %><%= f.hidden_field :user_id %></dd>
  </dl>
  <dl>    
    <dd class="right">
      <%= link_to_function '保存', "$('#{@user.id}_new_sm_form').onsubmit()", :class => :submit %>      
      <%= link_to_remote '返回',
            :url => last_sms_user_url(@user),
            :method => :get,
            :html => {
              :class => :reset
            }
      %> 
    </dd>
  </dl>
<% end %>
<script type="text/javascript" charset="utf-8">
  <% if @error.present? %>
  alert("<%= t @error %>导致绑定失败，请重试");
  <% end %>
</script>
</div>